package back;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import back.config.AppConfig;
import back.service.FuckService;

public class Hello {

	public static void main(String[] args) {
		ApplicationContext app=new AnnotationConfigApplicationContext(AppConfig.class);
		var fuck=app.getBean(FuckService.class);
		System.out.println(fuck.selectAll());
	}

	@Test
	public void test1() {
		ApplicationContext app=new AnnotationConfigApplicationContext(AppConfig.class);
		var fuck=app.getBean(FuckService.class);
		System.out.println(fuck.selectAll());
	}
}
